package com.stoken.domain;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@Entity
public class MemberStokenWallet implements Serializable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY) 
	private long id;
	
	@ManyToOne
	@JoinColumn(name="base_username",nullable=false)
	private MemberBaseInfo baseUsername;
	
//	stoken_wallet_balance	代币钱包余额	double			NOT NULL
//	stoken_wallet_recharge	代币钱包充值总额	double			
//	stoken_wallet_quota	代币钱包充值限额	double		激活用户时初始化，限额为开户金额的3倍，在用户从电子钱包转入资金时扣出。	NOT NULL
//	stoken_wallet_last_time	最后一次更新时间	time			
//	stoken_wallet_remark	备注	varchar	256		
//	stoken_wallet_spare	备用字段	varchar	256		
	
	@Column(nullable=false)
	private double stokenWalletBalance;
	
	@Column(columnDefinition="double default 0.00")
	private double stokenWalletRecharge;
	
	@Column(columnDefinition="double default 0.00")
	private double stokenWalletQuota;
	
	@Column(nullable=false)
	@Temporal(TemporalType.TIMESTAMP)
	private Date tokenWalletLastTime;
	
	private String stokenWalletRemark;
	
	private String stokenWalletSpare;

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public MemberBaseInfo getBaseUsername() {
		return baseUsername;
	}

	public void setBaseUsername(MemberBaseInfo baseUsername) {
		this.baseUsername = baseUsername;
	}

	public double getStokenWalletBalance() {
		return stokenWalletBalance;
	}

	public void setStokenWalletBalance(double stokenWalletBalance) {
		this.stokenWalletBalance = stokenWalletBalance;
	}

	public double getStokenWalletRecharge() {
		return stokenWalletRecharge;
	}

	public void setStokenWalletRecharge(double stokenWalletRecharge) {
		this.stokenWalletRecharge = stokenWalletRecharge;
	}

	public double getStokenWalletQuota() {
		return stokenWalletQuota;
	}

	public void setStokenWalletQuota(double stokenWalletQuota) {
		this.stokenWalletQuota = stokenWalletQuota;
	}

	public Date getTokenWalletLastTime() {
		return tokenWalletLastTime;
	}

	public void setTokenWalletLastTime(Date tokenWalletLastTime) {
		this.tokenWalletLastTime = tokenWalletLastTime;
	}

	public String getStokenWalletRemark() {
		return stokenWalletRemark;
	}

	public void setStokenWalletRemark(String stokenWalletRemark) {
		this.stokenWalletRemark = stokenWalletRemark;
	}

	public String getStokenWalletSpare() {
		return stokenWalletSpare;
	}

	public void setStokenWalletSpare(String stokenWalletSpare) {
		this.stokenWalletSpare = stokenWalletSpare;
	}
	
	
}
